package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.EmployeeUpdPasswordDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

import java.util.HashMap;

/**
* @author luo20
* @description 针对表【employee(员工信息)】的数据库操作Service
* @createDate 2025-07-04 17:20:05
*/
public interface EmployeeService extends IService<Employee> {
    /**
     * 新增员工
     * @param employeeDTO
     * @return
     */
    Integer save(EmployeeDTO employeeDTO);

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 根据员工姓名分页查询
     * @param employeePageQueryDTO
     * @return
     */
    PageResult<Employee> EmpPage(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 根据id启用、禁用员工账号
     * @param empMap
     * @return
     */
    Integer updStatus(HashMap<String, Object> empMap);

    /**
     * 编辑员工信息
     * @param employeeDTO
     * @return
     */
    Integer update(EmployeeDTO employeeDTO);

    /**
     * 修改密码
     * @param employeeUpdPasswordDTO
     */
    void editPassword(EmployeeUpdPasswordDTO employeeUpdPasswordDTO);
}
